package com.verolux.soft.debaraz.controller;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.verolux.soft.debaraz.bean.User;

@Controller
@RequestMapping("/account")
public class AccountController {
	
	private static Logger logger = Logger.getLogger(AccountController.class);
	
	/**
	 * 
	 * @return
	 */
	@RequestMapping("/create.do")
	public String displayAccount(){	
		return "account";
	}
	
	/**
	 * 
	 * @param user
	 * @return
	 */
	@RequestMapping(value = "/createuser.do")
	public ModelAndView addUser(@ModelAttribute User user ){	
		return new ModelAndView("user.create","user",user);
	}

}
